<link rel="stylesheet" href="/assets/store/plugins/kindeditor/themes/default/default.css">
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" method="post">
                    <input type="hidden" name="single[id]" value="<?php echo $single['id']; ?>" />
                    <input type="hidden" name="single[category_id]" value="<?php echo $category['id']; ?>" />
                    <div class="widget-body">
                        <fieldset>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl"><?php echo $category['title']; ?></div>
                            </div>

                            <div class="am-form-group">
                                <label class="am-u-sm-2 am-u-lg-2 am-form-label">内容详情 </label>
                                <div class="am-u-sm-10 am-u-end">
                                    <!-- 加载编辑器的容器 -->
                                    <textarea id="container" name="single[content]" style="height:350px;"><?php echo htmlspecialchars_decode($single['content']); ?></textarea>
                                </div>
                            </div>

                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>

                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script src="/assets/store/plugins/kindeditor/kindeditor-min.js"></script>
<script src="/assets/store/plugins/kindeditor/lang/zh_CN.js"></script>
<script>
$(function () {
    var editor = KindEditor.create('#container' , TEXT_EDITOR_CONFIG);
    /**
    $('.j-submit').click(function(){
        editor.sync();
    });
     */
    $('#my-form').superForm();
});
</script>



